import request from '@/utils/request'

// 查询歌单-用户列表
export function listPOwners(query) {
  return request({
    url: '/playlist/pOwners/list',
    method: 'get',
    params: query
  })
}

// 查询歌单-用户详细
export function getPOwners(playlistId) {
  return request({
    url: '/playlist/pOwners/' + playlistId,
    method: 'get'
  })
}

// 新增歌单-用户
export function addPOwners(data) {
  return request({
    url: '/playlist/pOwners',
    method: 'post',
    data: data
  })
}

// 修改歌单-用户
export function updatePOwners(data) {
  return request({
    url: '/playlist/pOwners',
    method: 'put',
    data: data
  })
}

// 删除歌单-用户
export function delPOwners(playlistId) {
  return request({
    url: '/playlist/pOwners/' + playlistId,
    method: 'delete'
  })
}
